package com.jyy.prefabricated.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @version 1.0.0
 * @author: zjj
 */
@Data
public class StudentRegisterDto {

    private String name;

    private String idCard;

    @NotNull(message = "手机号不能为空")
    private String tel;

    private String email;

    @NotNull(message = "密码不能为空")
    private String password;

    @NotNull(message = "验证码不能为空")
    private String validateCode;
    private String channelCode;

    /*
     *证件照
     */
    private String idPhoto;

    /*
     *'出生日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date dateBirth;
}
